package adapter;

/**
 * 二孔转三孔 适配器
 * @author 12609
 *
 */
public class TwoPlugAdapter implements ThreePinPlug {

	private TwoHoleOutlet plug;
	
	public TwoPlugAdapter(TwoHoleOutlet plug) {
		this.plug = plug;
	}
	
	@Override
	public void powerWithThree() {
		System.out.println("使用了转化器↓↓↓↓↓↓↓↓");
		plug.powerWithTwo();

	}

}
